set more off
capture log close

//  program:    AnanatEtAl_suicidality results
//  task:		Supplemental analysis for predicting state YRBS participation from job losses in prior year

//change working directory to point to the file with the data
cd *** Fill in path name here ***

log using *** Fill in file name here ***, replace text

use AnanatEtAl_YRBS participation_data.dta, clear

ivprobit yrbs (seppctyrlag = ticpctyrlag) yrd* std*
margins, dydx (seppctyrlag) predict (pr)

clear 

log close

